#!/bin/bash
workdir=/home/ceph-deploy.d/
cephlist="${workdir}/cephlist.txt"
for ip in $(cat $cephlist);do 
    echo -----$ip-----
    rsync -avp --delete /etc/hosts $ip:/etc/
    rsync -avp $workdir  root@$ip:$workdir
done
